package net.shop.dal.entity;

import java.io.Serializable;

import ths.core.cache.CacheKeyProvider;

import net.shop.biz.vo.ProductVirtualCategoryVo;

public class ProductVirtualCategory extends ValueObjectEntity<ProductVirtualCategoryVo> implements CacheKeyProvider, Serializable {

	private static final long serialVersionUID = -5210494138445487658L;
	
	public static final int START_NUMBER = 10;
		
	/* 基本信息 */
	private int categoryId;
	private String categoryName;
	private long haseCode;
	private int parentCid;
	private byte isParent;
	private short depth;
	private int reallyCid;
	private String categoryPic;
	private String brandIds;
	private String friendlyUrl;
	private String viewName;
	private short listOrder;
	private byte status;
	
	/* 语言 */
	private LangProductVirtualCategory lang;
	
	/* 扩展 */
	@Override
	public ProductVirtualCategoryVo getVo() {
		return vo;
	}

	public String getCacheKey() {
		StringBuilder sb = new StringBuilder("vk-");
		sb.append(this.getLang().getLanguageId()).append('-');
		sb.append(this.categoryId);
		return sb.toString();
	}
	
	/* Getters And Setters */
	public int getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String innerName) {
		this.categoryName = innerName;
	}

	public long getHaseCode() {
		return haseCode;
	}

	public void setHaseCode(long haseCode) {
		this.haseCode = haseCode;
	}

	public int getParentCid() {
		return parentCid;
	}

	public void setParentCid(int parentCid) {
		this.parentCid = parentCid;
	}

	public byte getIsParent() {
		return isParent;
	}

	public void setIsParent(byte isParent) {
		this.isParent = isParent;
	}

	public short getDepth() {
		return depth;
	}

	public void setDepth(short depth) {
		this.depth = depth;
	}

	public int getReallyCid() {
		return reallyCid;
	}

	public void setReallyCid(int reallyCid) {
		this.reallyCid = reallyCid;
	}

	public String getCategoryPic() {
		return categoryPic;
	}

	public void setCategoryPic(String categoryPic) {
		this.categoryPic = categoryPic;
	}

	public String getBrandIds() {
		return brandIds;
	}

	public void setBrandIds(String brandIds) {
		this.brandIds = brandIds;
	}

	public String getFriendlyUrl() {
		return friendlyUrl;
	}

	public void setFriendlyUrl(String friendlyUrl) {
		this.friendlyUrl = friendlyUrl;
	}

	public String getViewName() {
		return viewName;
	}

	public void setViewName(String viewName) {
		this.viewName = viewName;
	}

	public short getListOrder() {
		return listOrder;
	}

	public void setListOrder(short listOrder) {
		this.listOrder = listOrder;
	}

	public byte getStatus() {
		return status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}

	public LangProductVirtualCategory getLang() {
		return lang;
	}

	public void setLang(LangProductVirtualCategory lang) {
		this.lang = lang;
	}	
}
